import Taro, {Component} from '@tarojs/taro'
import {View, Text, Button, Image} from '@tarojs/components'
import NewsItem from '../../components/NewsItem/NewsItem'
import applySuccessImg from '../../images/stage/applySuccess.png'
import './applySuccess.scss'

export default class Applysuccess extends Component {

  config = {
    navigationBarTitleText: '申请融资'
  }

  componentDidHide() {
  }

  returnHome() {
    Taro.switchTab({
      url: '/pages/product/product'
    })
  }
  render() {
    return (
      <View className='applySuccess'>
        <View className='applyResult'>
          <Image mode='widthFix' src={applySuccessImg}></Image>
          <Text>申请成功</Text>
          <Button type='primary' onClick={this.returnHome}>返回首页</Button>
        </View>
        <View className='newsRecommend'>
          <View className='newsRecommend_title_row'>
            <View className='newsRecommend_title'>相关政策</View>
            <View className='newsRecommend_change'>
              <View className='newsRecommend_change_icon'></View>换一批
            </View>
          </View>
          <View className='newsRecommend_content'>
            <NewsItem url='1' title='湖南省人民政府办公厅关于印发《湖南省优化经济发展环境规定》的通知' time='2019.05.24' source='来源：中国政府网'></NewsItem>
            <NewsItem url='1' title='娄底市人民政府关于加快推进现代服务业发展的若干意见' time='2019.05.24' source='来源：中国政府网'></NewsItem>
            <NewsItem url='1' title='娄底市人民政府关于加快推进现代服务业发展的若干意见' time='2019.05.24' source='来源：中国政府网'></NewsItem>
          </View>
      </View>
    </View>
    )
  }
}
